<?php
/**
 * SocialEngine
 *
 * @category   Application_Core
 * @package    Translator
 * @copyright  Copyright 2008-2011 NewroSoftMods and TaurusSoft
 * @license    http://www.socialengine.net/license/
 * @author     Bezugliy Sergey
 */
class Translator_Widget_TranslatorMicrosoftController extends Engine_Content_Widget_Abstract
{
    public function indexAction()
    {
        $appId = $this->_getParam('appid');
        $isLogin = $this->_getParam('islogin');
        $viewer = Engine_Api::_()->user()->getViewer();
        
        if (empty($appId) or !$viewer->getIdentity() and !$isLogin) {
            return $this->setNoRender();
        }
        
        $this->view->appid = $appId;
    }
}